//
//  ZYBasicHelper.h
//  ZYhop
//
//  Created by Zyark on 2017/5/6.
//  Copyright © 2017年 Zyark. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ZYBasicHelper : NSObject
+ (NSString *)stringWithTimelineDate:(NSDate *)date;
+ (BOOL)validateMobile:(NSString *)mobile;
+ (BOOL)validateEmail:(NSString *)email;
+ (BOOL)validateQQ:(NSString *)qq;
/**
 处理网络请求错误
 
 @param error 错误
 @param message 错误显示的消息，如果为空则显示服务器返回的错误信息
 @param controller 跳转的根Controller
 */
+(void)handleErrorMessaeWithError:(NSError *)error message:(NSString *)message controller:(UIViewController *)controller;

+(void)goToLogin:(UIViewController *)controller;
@end
